package com.lotusyu.share;

import com.lotusyu.share.event.impl.LoginEvent;
import com.lotusyu.share.service.LoginService;

public class App {
    private BeanFactory beanFactory = new BeanFactory();
    private ServiceFactory serviceFactory = new ServiceFactory();
    public void start(){
        beanFactory.put(0,LoginEvent.class);
        serviceFactory.put(0,new LoginService());
    }

    public BeanFactory getBeanFactory(){
        return beanFactory;
    }

    public ServiceFactory getServiceFactory(){
        return serviceFactory;
    }
}
